using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class DisassociateRequest : OrganizationRequest
	{
		public EntityReference Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (EntityReference)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public Relationship Relationship
		{
			get
			{
				if (base.Parameters.Contains("Relationship"))
				{
					return (Relationship)base.Parameters["Relationship"];
				}
				return null;
			}
			set
			{
				base.Parameters["Relationship"] = value;
			}
		}
		public EntityReferenceCollection RelatedEntities
		{
			get
			{
				if (base.Parameters.Contains("RelatedEntities"))
				{
					return (EntityReferenceCollection)base.Parameters["RelatedEntities"];
				}
				return null;
			}
			set
			{
				base.Parameters["RelatedEntities"] = value;
			}
		}
		public DisassociateRequest()
		{
			base.RequestName = "Disassociate";
			this.Target = null;
			this.Relationship = null;
			this.RelatedEntities = null;
		}
	}
}
